<layout name='Layout/layout_page' />

	<ol class="breadcrumb">
		<li><a href="<{:U('Dispatch/index')}>">配送设置</a></li>
      	<li class="active">添加</li>
    </ol>

	<form id="ajaxForm" action="<{:U('Dispatch/save')}>" method="post" class="form-horizontal form-validata">

		<div class="form-group">
			<label class="col-md-1 control-label" for="name">名称</label>
			<div class="col-md-2">
				<input type="text"
                class="form-control"
				name="name"
				id="name"
				data-rule-required="true"
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="name">运费</label>
			<div class="col-md-2">
				<input type="text"
                class="form-control"
				name="money"
				id="money"
				data-rule-required="true"
				data-rule-number="true"
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="name">免运费金额</label>
			<div class="col-md-2">
				<input type="text"
                class="form-control"
				name="freeMoney"
				id="freeMoney"
				data-rule-required="true"
				data-rule-number="true"
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="keyword">状态</label>
			<div class="col-md-11">
				<label class="radio-inline">
					<input type="radio" name="show" value="1" checked="checked"> 启用
				</label>
				<label class="radio-inline">
					<input type="radio" name="show" value="0"> 禁用
				</label>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label">排序：</label>
			<div class="col-md-2">
				<input type="text"
                class="form-control"
				name="sort"
				id="sort"
				data-rule-required="true"
				data-rule-number="true"
				value = "1"
				/>
				<p>数字越小越靠前</p>
			</div>
		</div>
	
		<div class="form-group">
			<div class="col-md-11 col-sm-offset-1">
				<button type="submit" class="btn btn-info">添加</button>
			</div>
		</div>
	</form>


<input type="hidden" id="menu_action" value="goods" />